package com.film.rowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.film.domain.FilmSeat;

public class SeatRowMapper implements RowMapper<FilmSeat>{

	@Override
	public FilmSeat mapRow(ResultSet res, int arg1) throws SQLException {
		FilmSeat seat = new FilmSeat();
		seat.setSeatId(res.getInt("seat_id"));
		seat.setSeatNumber(res.getString("seat_number"));
		return seat;
	}

}
